// sensordatathread.h
#ifndef SENSORDATATHREAD_H
#define SENSORDATATHREAD_H

#include <QThread>
#include <QDateTime>

class SensorDataThread : public QThread
{
    Q_OBJECT
public:
    explicit SensorDataThread(QObject *parent = nullptr);
    void stop();

signals:
    void sensorDataUpdated(double time, double valueX, double valueY, double valueZ);

protected:
    void run() override;

private:
    bool m_running;
    QDateTime m_startTime;
};

#endif // SENSORDATATHREAD_H

